import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/example/HelloWorld'
import Hello from '@/components/example/Hello'
import Index from '@/components/index'

Vue.use(Router)

export default new Router({
  mode: 'history',//默认为hash模式，路径中带'#'
  routes: [
    {
      path: '/',
      redirect : '/index'
    },
    {
      path: '/index',
      name: 'index',
      component:Index
    },
    {
      path: '/hello',
      name: 'Hello',
      component: Hello
    }
  ]
})

